<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>精彩课程回顾</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <meta name="format-detection" content="telephone=no, address=no">
    <meta name="apple-mobile-web-app-capable" content="yes" /> <!-- apple devices fullscreen -->
    <meta name="apple-touch-fullscreen" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<!--     <meta name="keywords" content="微直达" />
    <meta name="description" content="微直达: 直达天下，瞬息联通。" /> -->

    <!-- Bootstrap -->
    <link href="business/resource/css/common.css" rel="stylesheet">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js does not work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" href="business/style/common.css">
    <script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="app/js/common.js"></script>
</head>
<body>
<style>
    .header .list{font-size:0.68267rem; }
    .LoveRead{ padding:48px 16px 0; }
    .LoveRead a{ text-decoration:none; font-size: 0.68267rem;}
    .LoveRead .LoveRead_time{ width:100%; overflow:hidden; margin:16px 0; text-align:center; }
    .LoveRead .LoveRead_time div{ padding:4px 8px; font-size:0.54613rem; background-color:#CECECE; color:#FFF; margin:auto; display:inline-block; border-radius:3px; }
    .LoveRead dl{ background-color:#FFF; border-radius:4px; box-shadow:0px 0px 2px #999; }
    .LoveRead dt{ padding:8px; overflow:hidden; height:158px; }
    .LoveRead dt .img{width:100%; height:158px; position:relative; overflow:hidden;border-style:none;border-width:0; }
    .LoveRead dt .img div{ background:url(business/style/black_1px.png); position:absolute; left:0; bottom:0; width:100%; }
    .LoveRead dt .img div h1{ margin:8px; color:#FFF; font-weight:normal; font-size:0.750937rem; text-align:left; }
    .LoveRead dd{ border-top:1px solid #eee; overflow:hidden; padding:8px 8px 8px; }
    .LoveRead dd table{ border:none; width:100%; }
    .LoveRead dd td{ border:none; color:#333; }
    .LoveRead dd td a {color:#333; }
    .LoveRead dd .LRtxt{ font-size:0.68267rem; line-height:180%; vertical-align:middle; }
    .LoveRead dd .img{ width:40px; height:40px; overflow:hidden; float:right; margin-left:8px; border-style:none;border-width:0;}
    .bottom{height:64px;width:100%;text-align:center;overflow:hidden;line-height:32px;font-size:0.68267rem; }
    .bottom_word{width:100%;height:64px;line-height:64px;color:#666;font-size:0.68267rem;text-align:center;}
    .pageend,.pageloading{display: none;}
</style>

<?php
/**
 * Created by PhpStorm. User: 张书博, Date: 16-04-21 下午18:30
 * Update by PhpStorm. User: wym, Date: 16-06-1 下午18:30
 * Description:
 */

?>

<div class="header" style="z-index: 9999">
    <a href="<?=$course_index_url?>"   class="list">课程列表</a></div></div><!--改-->
<div class="LoveRead">
    <?php  foreach($course_h_list as $k => $v):  ?>
            <div class="LoveRead_time"><div><?=$v['添加时间']?></div></div>
                 <dl>
                    <a href="<?=$v['文章url']?>">
                      <dt>
                       <div class="img" style="background:url(<?=$v['图片url']?>) no-repeat center;background-size:cover; "><div><h1><?=$v['标题']?></h1></div></div>
                      </dt>
                   </a>
                 </dl>
    <?php  endforeach;  ?>


</div>
<div class="bottom  pageloading"><div class="bottom_word" >正在加载...</div></div>
<div class="bottom  pageend"><div class="bottom_wordd" >加载完毕</div></div>

<script src="business/resource/js/jquery-1.11.1.min.js"></script>
<script>
    var page=2;
    var end = false;
    var timer = null;
    $(document).ready(function() {
        $(window).scroll(function() {
            if(end == true){
                return false;
            }
            clearTimeout(timer);
            timer = setTimeout(
                function(){
                    if (($(document).scrollTop() >= $(document).height() - $(window).height()-100)){
                        $.ajax({
                            url:"<?=$ajax_course_url?>",
                            type:'post',
                            data:{page:page},
                            beforeSend: function () {
                                $(".pageloading").show();
                            },
                            success:function(data){
                                if(data == 'zero'){
                                    end = true;
                                    $(".pageloading").hide();
                                    $(".pageend").show();
                                }else{
                                    $(".LoveRead").append(data);
                                    $(".pageloading").hide();
                                    page++;
                                }

                            }

                        })
                    }
                },200
            );

        });
    });

    wx.config({
        debug: false,
        appId: '<?php echo $this->signPackage["appId"];?>',
        timestamp: <?php echo $this->signPackage["timestamp"];?>,
    nonceStr: '<?php echo $this->signPackage["nonceStr"];?>',
            signature: '<?php echo $this->signPackage["signature"];?>',
            jsApiList: [
        'onMenuShareAppMessage',
        'onMenuShareTimeline',
        'onMenuShareQQ',
        'onMenuShareWeibo',
        'onMenuShareQZone'
    ]
    });

    title = '【爱贝儿医】精彩课程回顾';
    desc = '专业顶级专家定期在线义讲，让普通医生与名师零距离接触。同时平台汇集了国内外最典型的临床案例，专家团队进行原创点评的经典病例分析，让普通医生能从中得到最佳的诊疗方案。医生们也可以把自己的疑难病例发到平台上，请专家给予指导。';
    links = '';
    imgUrl = '<?=G_SITE_CDN?>/business/img/logoRed2.png';
    weixinShare(title, desc, links, imgUrl);


</script>
<?php require 'app/templates/common/foot.html'; ?>
<?php require 'app/templates/common/download.html'; ?>
</body>
</html>